(C) 1996 AROS - The Amiga Replacement OS


NAME
#include <proto/dos.h>
STRPTR FilePart()
SYNOPSIS
STRPTR path

LOCATION
In DOSBase at offset 145
FUNCTION
Get a pointer to the last component of a path, which is normally the filename.

INPUTS
path
pointer AmigaDOS path string May be relative to the current directory or the current disk.
RESULT
A pointer to the first char of the filename!

NOTES
EXAMPLE
FilePart("xxx:yyy/zzz/qqq") returns a pointer to the first 'q'.
FilePart("xxx:yyy")         returns a pointer to the first 'y'.
FilePart("yyy")             returns a pointer to the first 'y'.

BUGS
None known.

SEE ALSO
PathPart(), AddPart()
INTERNALS
Goes from the last char of the pathname back until it finds a ':', a '/' or until the first char reached.

HISTORY
10.03.1997 ldp
Removed log, because it was a mess (formatting errors)
27.01.1997 ldp
Polish
09.12.1996 aros
Added empty templates for all missing functions

Moved #include's into first column

21.11.1996 aros
Created macros AROS_SLIB_ENTRY() for assembler files, too, to solve naming problems.

The #includes in the header *must* begin in the first column. Otherwise makedepend will ignore them (GCC works, though).

Removed a couple of Logs

24.10.1996 aros
Use the official AROS macros over the __AROS versions.
21.10.1996 aros
Better way to create a TEST
23.08.1996 digulla
Added #include "dos_intern.h"
20.08.1996 digulla
FilePart by Martin Steigerwald